<?php
/* @var $this PengajianController */
/* @var $model Pengajian */
//global $array_hari, $array_pasaran;
//$this->sub_menu = "Daftar Pengajian";
global $array_hari;
global $array_pasaran;
?>
<div class="judul2" style="padding:3px 15px">
   Pengajian
</div>
<div>
    <div style="border-bottom: 0px dotted black;height:auto">
        <div valign="top" style="padding-top:10px;padding:0px 15px;">
            <div style="position: relative;padding-top: 10px;"> 
    
        <?php
    $form = $this->beginWidget('CActiveForm',
            array(
        'action' => Yii::app()->createUrl($this->route,
                array("id" => str_replace(" ", "_", $model->penceramah))),
        'method' => 'get',
    ));
    ?>
        
<table border="0" cellpadding="0" cellspacing="0" id="id-form">

    
         <tr>
            <th valign="top" class="fontcolorbiru0b5fa5 font12 fontfamcalibry" align="left"><?php echo $form->label($model,'hari'); ?></th>
            <td class="idform">
                 <?php
                echo $form->dropDownList($model, 'hari', $array_hari, array(
                    'empty' => '(Pilih Hari)',
                    'style' => 'width:150px',));
                ?>
            </td>
           
        </tr>
    
    
            <tr>
            <th valign="top" class="fontcolorbiru0b5fa5 font12 fontfamcalibry" align="left"><?php echo $form->label($model,'pasaran'); ?></th>
            <td class="idform">
                <?php
                echo $form->dropDownList($model, 'pasaran', $array_pasaran, array(
                    'empty' => '(Pilih Pasaran)',
                    'style' => 'width:150px',));
                ?>
            </td>
           
        </tr> 
        
         <tr>
            <th valign="top" class="fontcolorbiru0b5fa5 font12 fontfamcalibry" align="left"><?php echo $form->label($model,'waktu'); ?></th>
            <td class="idform">
               	<?php echo $form->textField($model,'waktu',array('size'=>60,'maxlength'=>255)); ?>
            </td>
           
        </tr> 
          <tr>
            <th valign="top" class="fontcolorbiru0b5fa5 font12 fontfamcalibry" align="left"><?php echo $form->label($model,'tempat'); ?></th>
            <td class="idform">
               	<?php echo $form->textField($model,'tempat',array('size'=>60,'maxlength'=>255)); ?>
            </td>
           
        </tr> 
      <tr>
            <th>&nbsp;</th>
            <td valign="top">
               <?php  echo CHtml::submitButton('Search'); ?>
            </td>
            <td class="idform"></td>
        </tr>
</table>

 <?php $this->endWidget(); ?>
<?php
$this->widget('zii.widgets.grid.CGridView',
        array(
    'id' => 'pengajian-grid',
    'dataProvider' => $model->search(),
//    'filter' => $model,
    'columns' => array(
//        'id_pengajian',
        'penceramah',
        'hari',
        'pasaran',
        'waktu',
        'tempat',
//        array(
//            'class' => 'CButtonColumn',
//        ),
    ),
));
?>
</div>
</div>
</div>
</div>